-
Notifications
You must be signed in to change notification settings - Fork 379
Update coverage filters #1811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update coverage filters #1811
Conversation
|
|
||
| <!-- Full coverage report. --> | ||
| <Import Condition="'$(EnableFullCoverageReportTarget)' == 'true' AND '$(Coverage)' == 'true' AND '$(SkipTests)' != 'true'" Project="$([MSBuild]::NormalizePath('$(TestCoreDir)', 'coverage', 'CoverageReport.targets'))" /> | ||
| <Import Condition="'$(EnableFullCoverageReportTarget)' == 'true' AND '$(SkipCoverageReport)' != 'true' AND '$(Coverage)' == 'true' AND '$(SkipTests)' != 'true'" Project="$([MSBuild]::NormalizePath('$(TestCoreDir)', 'coverage', 'CoverageReport.targets'))" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From looking at these set of conditions it seems that there are a lot of conditions that can cause this to not be imported. Just to understand, SkipCoverageReport == true, but SkipTests==false, will cause to run code coverage and not to create a report? I just want to clarify what is the purpose of this property. Because we can also disable that with Coverage == false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ignore SkipTests which will be removed with #1704
src/Microsoft.DotNet.CoreFxTesting/build/core/coverage/Coverage.props
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.CoreFxTesting/build/core/coverage/Coverage.targets
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.CoreFxTesting/build/core/coverage/Coverage.targets
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.CoreFxTesting/build/core/coverage/Coverage.targets
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.CoreFxTesting/build/core/coverage/Coverage.targets
Outdated
Show resolved
Hide resolved
14077b9 to
731fa0c
Compare
Allows more coverage filters, i.e. better exclude filters. Prepares for Corelib support. Also adds a SkipCoverageReport option to disable on CI.